home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 5_12.lha / 5_12 / 5_12a.c < prev    next >
Text File  |  1993-08-08  |  455b  |  24 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6.  
  7. / bogus class which prints out messages
  8. / upon construction and destruction
  9. lass bogus
  10.  
  11. ublic:
  12.    bogus()  { cout << "Initialize\n"; }
  13.    ~bogus() { cout << "Clean up\n"; }
  14. ;
  15.  
  16. stream &cout2 = cout;
  17. define cout    class bogus y; cout2
  18.  
  19. ain()
  20.  
  21.    cout << "Hello, world\n";
  22.    return 0;    // DELETE
  23.  
  24.